package me.ereach.collections;

import java.util.ArrayDeque;
import java.util.Queue;

public class QueueDemo {
    public static void show() {
        // Deque是一个双向队列
        Queue<String> queue = new ArrayDeque<>();

        queue.add("c");
        queue.add("a");
        queue.add("b");
        // queue: b >> a >> c
        var front = queue.peek();   // c
    }
}
